package com.shop.front.request.store;

import com.shop.domain.store.StoreCart;
import com.shop.domain.store.StoreProduct;
import com.shop.domain.store.StoreProductAttrValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@ApiModel("订单清单提交请求参数")
@Data
public class StoreOrderCartInfoSubmitReq {

    @ApiModelProperty(value = "购物车商品id")
    @NotBlank(message = "请选择一个商品")
    private String sign;

    @ApiModelProperty("数量")
    @Min(value = 1, message = "数量必须大于0")
    private Integer cartNum;

    @ApiModelProperty(value = "购物车信息", hidden = true)
    private StoreCart cart;

    @ApiModelProperty(value = "商品信息", hidden = true)
    private StoreProduct product;

    @ApiModelProperty(value = "商品规格信息", hidden = true)
    private StoreProductAttrValue productAttrValue;


}
